package com.easy.modules.sysmgr.web.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.easy.common.util.Const;
import com.easy.common.web.BaseController;
import com.easy.common.web.page.DataGrid;
import com.easy.common.web.page.Msg;
import com.easy.modules.sysmgr.service.LoginLogServiceI;
import com.easy.modules.sysmgr.web.form.LoginLogForm;

@Controller
@RequestMapping("/sysmgr/loginlog")
public class LoginLogAction extends BaseController {

	@Autowired
	private LoginLogServiceI loginlogService ;
	
	@RequestMapping("/loginlog_main.do")
	public String loginlog_main(){
		return  Const.SYSMGR + "loginlog_main" ;
	}
	
	@RequestMapping("/doNotNeedAuth_get.do")
	@ResponseBody
	public LoginLogForm get(LoginLogForm form){
		return this.loginlogService.get(form) ;
	}
	
	@RequestMapping("/doNotNeedAuth_delete.do")
	@ResponseBody
	public Msg delete(LoginLogForm form){
		return this.loginlogService.delete(form) ;
	}
	
	@RequestMapping("/doNotNeedAuth_datagrid.do")
	@ResponseBody
	public DataGrid datagrid(LoginLogForm form){
		return this.loginlogService.datagrid(form) ;
	}
	
	@RequestMapping("/doNotNeedAuth_loginTimeChart.do")
	@ResponseBody
	public List<Long> doNotNeedAuth_loginTimeChart(){
		return this.loginlogService.loginTimeChart() ;
	}
}
